import { getAddressPromise } from "../../utils/address";

Page({
  data: {
    curAddress: null, // 当前选择的地址
  },

  goToAddress() {
    getAddressPromise().then((address) => {
      console.log("回调", address);
      this.setData({
        curAddress: address,
      });
    });

    wx.navigateTo({
      url: "/pages/address/list",
    });
  },
});
